<template>
    <div>
        <div style="height:1.8rem;"></div>
        <TabItems :itemgroup="menuarr" v-on:onTabChang='onChangeFn'></TabItems>
        <router-view></router-view>
    </div>
</template>
<script>
 import TabItems from '@/components/common/TabItems'
export default {
    components:{
            TabItems
        },
    data () {
        return {
       menuarr:[
                    {name:'最新资讯',url:'/industryinfo'},
                    {name:'政策法规',url:'/industryinfo/zxfg'},
                ],            
        }
    },
    created () {
         this.$store.commit('setTitle',"行业资讯");
    },
    methods: {
        onChangeFn(e){
            this.$store.commit('setMenu',e);
            this.$router.push(`${e}`);
        }
    }
    
}
</script>

